import request from '@/utils/request'

// 查询未发货的所有包裹信息
export function getAllPackage(time) {
    return request({
        url: `package/package/listNotShip?time=${time}`,
    })
}

//获取所有路线
export function getAllLines() {
    return request({
        url: '/busport/lines/getAllLines',
    })
}

//查询车辆信息
export function getCarInfo(query) {
    return request({
        url: 'busport/shift/listMessageShift',
        params: query
    })
}

//车货绑定
export function addPackage(data) {
    return request({
        url: 'link/link',
        method: 'post',
        data
    })
}
export function addPackageH5(data) {
    return request({
        url: 'api/link',
        method: 'post',
        data
    })
}

//客货邮服务点
export function getPostStaionByGkNo(gkNo) {
    return request({
        url: `/khystation/khystation/getPostStaionByGkNo?gkNo=${gkNo}`,
        method: 'get'
    })
}